package com.cyt.work.antiepidemic.service;

import com.cyt.base.model.dto.ReturnResult;
import com.cyt.sys.model.po.SysUser;
import com.cyt.sys.service.BaseService;
import com.cyt.work.antiepidemic.model.po.AntiepidemicCommunity;
import com.cyt.work.antiepidemic.model.vo.AntiepidemicCommunityVo;

import java.util.List;

/**
 * e门通-社区信息Service层接口类
 *
 * @author rong yuan
 * @date 2020-2-12 1:46:52
 */
public interface AntiepidemicCommunityService extends BaseService<AntiepidemicCommunity> {

    /**
     * 分页查询
     *
     * @param antiepidemicCommunityVo 接受参数对象
     * @param pageNum                 分页数
     * @param pageSize                每页显示条数
     * @return ReturnResult
     * @author rong yuan
     * @date 2020-2-12 1:46:52
     */
    ReturnResult page(AntiepidemicCommunityVo antiepidemicCommunityVo, int pageNum, int pageSize);
    /**
     * list查询
     *
     * @param antiepidemicCommunityVo 接受参数对象
     * @return List<AntiepidemicCommunity>
     * @author yu shengqiang
     * @date 2020-2-12 14:42:35
     */
    List<AntiepidemicCommunity> findList(AntiepidemicCommunityVo antiepidemicCommunityVo);
        /**
         * 添加或更新
         *
         * @param antiepidemicCommunityVo 参数接受对象
         * @param sysUser                 当前用户
         * @return ReturnResult
         * @author rong yuan
         * @date 2020-2-12 1:46:52
         */
    ReturnResult addOrUpdate(AntiepidemicCommunityVo antiepidemicCommunityVo, SysUser sysUser);

    /**
     * 根据条件逻辑删除
     *
     * @param antiepidemicCommunityVo 参数接受对象
     * @param sysUser                 当前用户
     * @return ReturnResult
     * @author rong yuan
     * @date 2020-2-12 1:46:52
     */
    ReturnResult remove(AntiepidemicCommunityVo antiepidemicCommunityVo, SysUser sysUser);

    /**
     * 根据条件物理删除
     *
     * @param antiepidemicCommunityVo 参数接受对象
     * @param sysUser                 当前用户
     * @return ReturnResult
     * @author rong yuan
     * @date 2020-2-12 1:46:52
     */
    ReturnResult delete(AntiepidemicCommunityVo antiepidemicCommunityVo, SysUser sysUser);

    ReturnResult acceptSelect(String code);
}